﻿using RpcClient.Collect;
using RpcClient.Interface;
using RpcClient.Model;
using RpcModel;

namespace RpcClient.Tran
{
    internal class RpcTranExtendService : IExtendService
    {
        public string Name => "RpcTran";

        public void Load(IRpcService service)
        {
            service.ReceiveEnd += this.Service_ReceiveEnd;
        }

        private void Service_ReceiveEnd(IMsg msg, TcpRemoteReply reply)
        {
            RpcTranCollect.ReceiveEnd();
        }
    }
}
